package com.manshutingyu.system.controller;

import com.manshutingyu.common.core.dto.R;
import com.manshutingyu.system.api.domain.SysUserDTO;
import com.manshutingyu.system.api.feign.RemoteSysUserService;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author：yinyuxia
 * @Date：2025/4/23 12:07
 */
@RestController
@RequestMapping("/my")
public class MyController {
    @Resource
     private RemoteSysUserService remoteSysUserService;
    @RequestMapping("/heheda")
    public String heheda(@RequestParam("id") Long id ) {
         R<SysUserDTO> userDTO= remoteSysUserService.getById(id);
        return "hello, 你好呀"+userDTO;
    }

}
